package com.ruihu.admin.constant;

import java.util.regex.Pattern;

public class PatternCache {

    /**
     * 缺陷类型及个数的描述 Pattern
     */
    private static final Pattern DEFECT_TYPE_DESC_PATTERN = Pattern.compile("(([\\w\\u4e00-\\u9fa5]+)（(\\d+)个）)+");

    /**
     * 缺陷类型及个数的描述整体 Pattern
     */
    private static final Pattern DEFECT_TYPE_DESC_PATTERN_WHOLE = Pattern.compile("(([\\w\\u4e00-\\u9fa5]+)（(\\d+)个）(、?))+");

    public static Pattern getDefectTypeDescPattern() {
        return DEFECT_TYPE_DESC_PATTERN;
    }

    public static Pattern getDefectTypeDescPatternWhole() {
        return DEFECT_TYPE_DESC_PATTERN_WHOLE;
    }

}
